package com.dragon.codefx.dataBase.entity;

import com.dragon.common.JpaBean;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 表配置 实体类
 *
 * @author dragon
 * @version V1.0
 * @date 2025-6-23
 */
@Entity
@Table(name = "db_schema_table_config")
@org.hibernate.annotations.Table(appliesTo = "db_schema_table_config", comment = "")
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@DynamicUpdate
@DynamicInsert
public class SchemaTableConfigEntity extends JpaBean<SchemaTableConfigEntity> {
    /**
     *作者 
     */
    @Column(columnDefinition = " varchar(255)   comment ' 作者' ")
    private String author;

    /**
     *表前缀 
     */
    @Column(columnDefinition = " varchar(255)   comment ' 表前缀' ")
    private String tablePrefix;

    /**
     *是否生成xml 
     */
    @Column(columnDefinition = " int   comment ' 是否生成xml' ")
    private Integer generaXml;

    /**
     *包路径 
     */
    @Column(columnDefinition = " varchar(255)   comment ' 包路径' ")
    private String basePackage;

    /**
     *表名 
     */
    @Column(columnDefinition = " varchar(255)   comment ' 表名' ")
    private String tableName;

    /**
     *表注释 
     */
    @Column(columnDefinition = " varchar(255)   comment ' 表注释' ")
    private String tableComment;

    /**
     *数据库名 
     */
    @Column(columnDefinition = " varchar(255)   comment ' 数据库名' ")
    private String schemaName;

    /**
     *父类字段 
     */
    @Column(columnDefinition = " varchar(255)   comment ' 父类字段' ")
    private String parentFields;
    /**
     *生成方式
     */
    @Column(columnDefinition = " varchar(255)   comment ' 父类字段' ")
    private String generateMethod;


}